//
//  FWoneController.m
//  pmmSS
//
//  Created by Mac book on 2017/9/5.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import "FWoneController.h"
#import "FWtwoController.h"

@interface FWoneController ()

@property(nonatomic,strong) UIButton *codeBtn;
@property(nonatomic,strong) UILabel *codeLabel;

@end

@implementation FWoneController

- (void)viewDidLoad {
    [super viewDidLoad];

   WeakSelf(weakSelf);

    self.userLabel.text = @"帐号";
    self.passwordLabel.text = @"验证码";
    self.userNameTextfield.placeholder = @"请输入您的手机号";
    self.passWordTextfield.placeholder = @"请输入验证码";
    [self.loginBtn setTitle:@"下一步" forState:UIControlStateNormal];

     //------------**********------------

    _codeBtn = [HMButton createButtonWithTitle:@"" andTitleColor:[UIColor whiteColor] andBgColor:nil andImage:nil andBgImage:nil andSelecter:nil andTarget:self andTag:201];

//    _codeBtn.titleLabel.font = [UIFont fontWithName:default_fontname size:autoScaleW(12)];
    _codeBtn.clipsToBounds = YES;
    _codeBtn.layer.cornerRadius = 4;
    [_codeBtn.layer setBorderColor:[UIColor whiteColor].CGColor];
    [_codeBtn.layer setBorderWidth:0.5];
    [_codeBtn.layer setMasksToBounds:YES];
    [self.view addSubview:_codeBtn];

    [_codeBtn mas_makeConstraints:^(MASConstraintMaker *make) {


      //  make.top.equalTo(weakSelf.userNameTextfield.mas_bottom).offset(autoScaleH(10));
        make.centerY.mas_equalTo(weakSelf.passWordTextfield);
        make.right.mas_equalTo(-10);
        make.width.mas_equalTo(autoScaleW(80));
        make.height.mas_equalTo(autoScaleH(24));
        
    }];

 //------------**********------------

    _codeLabel = [HMLabel createLabelWithText:@"获取验证码" andTextColor:[UIColor whiteColor] andBgColor:nil andFont:[UIFont fontWithName:default_fontname size:autoScaleW(14)] andTextAlignment:NSTextAlignmentCenter];

    [_codeBtn addSubview:_codeLabel];

    [_codeLabel mas_makeConstraints:^(MASConstraintMaker *make) {


        //  make.top.equalTo(weakSelf.userNameTextfield.mas_bottom).offset(autoScaleH(10));
        make.centerY.mas_equalTo(weakSelf.codeBtn);
        make.centerX.mas_equalTo(weakSelf.codeBtn);
        make.width.mas_equalTo(autoScaleW(80));
        make.height.mas_equalTo(autoScaleH(24));
        
    }];
    



    // Do any additional setup after loading the view.
}
-(void)clickBtn:(UIButton *)button{

    FWtwoController *vc = [[FWtwoController alloc]init];

    [self presentViewController:vc animated:YES completion:nil];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
